<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <style>
      
    </style>
    <script src="/公开课/JS/vue.min.js"></script>
  </head>
  <body>
    <!-- vue只控制div -->
    <div id="app">
    {{ number+1 }}
    {{ msg.split("").join('') }}
    {{ msg1=1? 'A':'B' }}

    </div>
    <!-- const定义常量的 -->
    <script>
      let data = { number:10, msg:'abcdefg',msg1:1}
      let vue = new Vue({
        el: "#app",
        data: data
      });
      console.log(vue.number==data.number)
      console.log(vue)
    </script>
  </body>
</html>
